import request from '@/utils/request'

// 查询AI封面关键字列表
export function listCoverkey(query) {
  return request({
    url: '/shortplay/coverkey/list',
    method: 'get',
    params: query
  })
}

// 查询AI封面关键字详细
export function getCoverkey(id) {
  return request({
    url: '/shortplay/coverkey/' + id,
    method: 'get'
  })
}

// 新增AI封面关键字
export function addCoverkey(data) {
  return request({
    url: '/shortplay/coverkey',
    method: 'post',
    data: data
  })
}

// 修改AI封面关键字
export function updateCoverkey(data) {
  return request({
    url: '/shortplay/coverkey',
    method: 'put',
    data: data
  })
}

// 删除AI封面关键字
export function delCoverkey(id) {
  return request({
    url: '/shortplay/coverkey/' + id,
    method: 'delete'
  })
}
